if ($args[0]) {
	$JENKINS_HOST = $args[0]
} 

Write-Host install build pipeline plugin to $JENKINS_HOST

mvn clean package -DskipTests=true
java -jar .\jenkins-cli.jar -s $JENKINS_HOST install-plugin .\target\build-pipeline-plugin.hpi
java -jar .\jenkins-cli.jar -s $JENKINS_HOST restart
